package com.aloha.springframework.test.aop;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * @author DaiZhiHeng
 * @date 2023/7/6 8:44
 */
public class UserAroundDaoInterceptor implements MethodInterceptor {

    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        System.out.println("============begin============");
        Object proceed = invocation.proceed();
        System.out.println("============end============");
        return proceed;
    }
}
